From: Jonas Dreßler Date: Wed, 3 Jun 2020 16:32:45 +0000 (+0200) Subject: workspace: Animate opening new windows while in overview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~169 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6757c7d20ac09003ea87bc02d2e93605599d8684;p=gnome-shell.git workspace: Animate opening new windows while in overview Use the pivot point and scale to animate in new windows which are opened while the overview is shown. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1305 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 182f350ae..dd7dacbee 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -953,7 +953,17 @@ class Workspace extends St.Widget { return; } - this._addWindowClone(metaWin); + const clone = this._addWindowClone(metaWin); + + clone.set_pivot_point(0.5, 0.5); + clone.scale_x = 0; + clone.scale_y = 0; + clone.ease({ + scale_x: 1, + scale_y: 1, + duration: 250, + onStopped: () => clone.set_pivot_point(0, 0), + }); if (this._layoutFrozenId > 0) { // If a window was closed before, unfreeze the layout to ensure